﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace RMSModel.Models
{
    [Table("order")]
    public class order
    {
        public int id { set; get; }

        public string ordersn { set; get; }
        
        public string wxpayorderid { set; get; }

        public int shopuserid { set; get; }

        public int orderstatus { set; get; }

        public string consignee { set; get; }

        public string province { set; get; }

        public string city { set; get; }
        public string district { set; get; }
        public string address { set; get; }
        public string mobile { set; get; }
        public string expresssn { set; get; }
        public string expressname { set; get; }
        public decimal? expressprice { get; set; }
        public decimal? orderprice { get; set; }
        public DateTime? addtime { set; get; }
        public DateTime? paytime { set; get; }
        [NotMapped]
        public Dictionary<string, int> ordergroup { set; get; }

        [NotMapped] public string consigneeinformation
        {
            get { return province+city+district+address+" "+consignee+" "+mobile; }
        } 

    }
}
